<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>

<div style="position: relative;top: 150px;left: 550px">
    <h3>人力资源管理系统</h3>
    <div style="position: relative;left: 300px">
        欢迎您：[[${name}]]
        <a href="http://localhost:8080/april/logout" style="padding-right: 100px">退出</a>
    </div>
    <table border="2">
        <caption align="center">人力信息</caption>
        <tr>
            <th>id</th>
            <th th:each="attr : ${attrs}" th:text="${attr}"></th>
            <th colspan="2">操作</th>
        </tr>
        <tr th:each="customer : ${customers}">
            <td th:text="${customer.id}"></td>
            <td th:each="attr : ${attrs}" th:text="${customer.ext.get(attr)}"></td>
            <td><a th:href="'http://localhost:8080/april/update?id='+${customer.id}">修改</a></td>
            <td><a th:href="'http://localhost:8080/april/delete?id='+${customer.id}">删除</a></td>
        </tr>
    </table>
    <a href="http://localhost:8080/april/newToInsert" style="position: relative;left: 100px">添加客户</a>
    <a href="http://localhost:8080/april/addAttrPage" style="position: relative;left: 100px">修改属性</a>
</div>


</body>
</html>